package chain.aimpl;

import java.util.List;

public abstract class AbstractHandler {
    protected AbstractHandler nextHandler;

    public void setNextHandler(AbstractHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract List<String> doChain(int money, List<String> names);

}
